package com.sm.service;

import com.sm.dao.SecondDirectoryMapper;
import com.sm.model.SecondDirectory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SecondDirectoryService {

    @Autowired
    private SecondDirectoryMapper secondDirectoryMapper;

    //根据二级类别id获取二级类别信息
    public SecondDirectory selectOne(Integer secondDirectoryId){
        return secondDirectoryMapper.selectByPrimaryKey(secondDirectoryId);
    }
}
